import { createRouter, createWebHistory } from 'vue-router';
import { qiankunWindow } from 'vite-plugin-qiankun/dist/helper'
import Hello from '../components/HelloWorld.vue'
import Test  from '../components/ImgEditor.vue'
const routes = [
	{
		path:'/',
		name:'home',
		component:Hello
	},
	{
		path:'/test',
		name:'Test',
		component:Test
	},
];

const router = createRouter({
	history: createWebHistory(qiankunWindow.__POWERED_BY_QIANKUN__ ? '/app-vue3' : '/'),
	routes
});
export default router;